Add global low power mode - #2518
Conversation
Clamp automatic provider, local usage, storage, and OpenAI Web work while preserving manual refreshes. Co-authored-by: OpenAI Codex <215057067+openai-codex[bot]@users.noreply.github.com>
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 6:58 PM ET / 22:58 UTC. ClawSweeper reviewWhat this changesAdds a default-off Global Low Power Mode that clamps automatic provider refreshes, local usage scans, storage scans, reset-boundary refreshes, and optional OpenAI web work to a 30-minute minimum while preserving user-initiated refreshes. Merge readinessThis PR remains necessary as the active implementation of the linked global low-power request. The branch cleanly merges with current main, its shared policy is wired through the automatic scheduling seams, and the new redacted installed-app evidence satisfies the real-behavior proof gate; it should proceed through the current CI and normal maintainer merge decision. Priority: P3 Review scores
Verification
How this fits togetherCodexBar persists refresh settings in its settings store, then uses them to schedule provider polling, local token and cost scans, storage-footprint scans, and optional OpenAI web enrichment. This PR inserts a shared low-power interval policy before automatic work is scheduled while preserving the user-initiated refresh path. flowchart LR
A[Saved refresh settings] --> B[Global Low Power Mode]
B --> C[Shared interval policy]
C --> D[Provider refresh timers]
C --> E[Local usage scans]
C --> F[Storage footprint scans]
B --> G[OpenAI web saver gate]
D --> H[Updated usage menu]
E --> H
F --> H
G --> H
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the default-off setting after the exact-head CI completes, retaining the shared policy as the single source of truth for automatic work and keeping manual refreshes independent. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a new opt-in power-management capability rather than repairing a defined current behavior failure. Its after-fix runtime proof is a redacted installed-app transcript showing an automatic cycle on the intended 30-minute boundary and preserved manual refresh access. Is this the best way to solve the issue? Yes. A single shared interval policy plus a persisted default-off setting is the narrowest maintainable solution, and the wiring preserves existing preferences instead of mutating saved refresh frequency or disabling features. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2920019bc16d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Maintainer gate pass complete at I merged current Proof:
The fork head is updated; CI is rerunning. I did not merge the PR. |
|
Runtime evidence from a real installed CodexBar.app with Global Low Power Mode enabled (redacted; no account identifiers or private paths): The status menu retained the explicit manual Refresh action. Automatic work was observed on the natural 30-minute boundary and the process returned to an idle sleeping state afterward; this is not a single 0% CPU snapshot. Measurement scope: this was the intended minimal local configuration, with nonessential Agent Sessions, status checks, storage footprints, and OpenAI Web disabled. Therefore the figures characterize that real configuration and are not presented as an isolated A/B attribution for every PR code path. The installed build contains the policy introduced at 403cce7 plus later local scan optimizations; the current PR head remains 8906608 with the maintainer integration and test fixes. @clawsweeper re-review 🤖 Generated with OpenAI Codex |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Fixes #2508
Summary
OpenAI web battery saverfrom the global controlBehavior
Validation
plutilandgit diff --checkpassCodexBarproduct build passed locally with the repository's Command Line Tools compatibility flagsThe local ad-hoc no-Widget packaging used for manual testing is not part of this PR.
🤖 Generated with OpenAI Codex